//
//  PublicRenameApi.m
//  3DPrint
//
//  Created by Fidetro on 2017/1/12.
//  Copyright © 2017年 Fidetro. All rights reserved.
//

#import "PublicRenameApi.h"

@implementation PublicRenameApi{
    NSDictionary *_dic;
}

-(id)initWithDic:(NSDictionary *)dic{
    if (self = [super init]) {
        _dic = dic;
    }
    return self;
}

- (NSString *)requestUrl {
    return @"/device/rename";
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (id)requestArgument {
    NSMutableDictionary *dic=[NSMutableDictionary getPubdic];
    if (_dic[@"id"]) {
        [dic setObject:_dic[@"id"] forKey:@"id"];
        
    }
    if (_dic[@"name"]) {
        [dic setObject:_dic[@"name"] forKey:@"name"];
        
    }
    NSString *sign=[NSString getSign:dic];
    [dic setObject:sign forKey:@"sign"];
    return dic;
}



@end
